package com.neusoft.elmboot1.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.neusoft.elmboot1.mapper.UserMapper;
import com.neusoft.elmboot1.po.User;
import com.neusoft.elmboot1.service.IUserService;
@Service
public class UserServiceImpl implements IUserService {
	@Autowired //DI
	UserMapper  userMapper;
	
	@Override
	public User login(User u) {
		User result = userMapper.selectByIdByPass(u);
		System.out.println("------------------------------:"+result);
		return result;
	}

}
